<template>
  <div>
    <!-- 总电站数 -->
    <div class="container">
      <div class="big-box">
        <img src="../assets/moneyimage.png" alt="图片" class="box-image" />
        <p style="color: white">总电站数</p>
        <p style="color: white">1</p>
      </div>

      <div class="small-boxes">
        <div class="small-box">
          <div class="left-side">
            <p>总装机功率（kW）</p>
            <p>200</p>
          </div>
          <div class="right-side">
            <img src="../assets/moneyimage.png" alt="图片" class="box-image" />
          </div>
        </div>
        <div class="small-box">
          <div class="left-side">
            <p>总装机容量（kWh）</p>
            <p>431</p>
          </div>
          <div class="right-side">
            <img src="../assets/moneyimage.png" alt="图片" class="box-image" />
          </div>
        </div>
      </div>
    </div>
    <div class="grid-container">
      <div class="box">
        <div class="box-content">
          <img src="../assets/moneyimage.png" alt="图片" class="box-image" />
          <div class="box-text">
            <p>累计充电量（MWh）</p>
            <p>111.6</p>
          </div>
        </div>
      </div>
      <div class="box">
        <div class="box">
          <div class="box-content">
            <img src="../assets/moneyimage.png" alt="图片" class="box-image" />
            <div class="box-text">
              <p>今日充电量（kWh）</p>
              <p>586.1</p>
            </div>
          </div>
        </div>
      </div>
      <div class="box">
        <div class="box">
          <div class="box-content">
            <img src="../assets/moneyimage.png" alt="图片" class="box-image" />
            <div class="box-text">
              <p>累计放电量（MWh）</p>
              <p>91.4</p>
            </div>
          </div>
        </div>
      </div>
      <div class="box">
        <div class="box">
          <div class="box-content">
            <img src="../assets/moneyimage.png" alt="图片" class="box-image" />
            <div class="box-text">
              <p>今日放电量（kWh）</p>
              <p>SOH</p>
            </div>
          </div>
        </div>
      </div>
      <div class="box">
        <div class="box">
          <div class="box-content">
            <img src="../assets/moneyimage.png" alt="图片" class="box-image" />
            <div class="box-text">
              <p>转换效率（%）</p>
              <p>81.9</p>
            </div>
          </div>
        </div>
      </div>
      <div class="boxText">
        <img src="../assets/moneyimage.png" alt="图片" class="box-image" />
        <p style="margin-left: 10px">告警</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style>
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.grid-container .box {
  height: 100px;
  background-color: #191e37;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  box-sizing: border-box;
}
.boxText {
  height: 100px;
  background-color: #191e37;
  color: white;
  border-radius: 8px;
  box-sizing: border-box;
}
.box-content {
  display: flex;
  align-items: center;
  width: 100%;
}
.box-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
}
.box-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.box-text p {
  font-size: 10px;
  margin: 0;
}
.boxText {
  display: flex;
  align-items: center;
}

.box-image {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

.boxText p {
  margin: 0;
}
.container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  background-color: #191e37;
}

.big-box {
  width: 30%;
  background-color: #191e37;
  padding: 20px;
}
.small-boxes {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 70%;
}

.small-box {
  background-color: #191e37;
  padding: 10px;
  margin-bottom: 40px;
  display: flex;
}

p {
  margin: 0;
  font-size: 14px;
}
.small-box .left-side {
  flex: 1;
  padding-right: 10px;
}

.small-box .right-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

img {
  width: 30px;
  height: 30px;
  object-fit: cover;
}
</style>
